Skip to content

qmake -> cmake#93

Open
nikita-talalai wants to merge 4 commits intotrikset:masterfrom
nikita-talalai:master
Open

qmake -> cmake#93
nikita-talalai wants to merge 4 commits intotrikset:masterfrom
nikita-talalai:master

Conversation

@nikita-talalai
Copy link

@nikita-talalai nikita-talalai commented Dec 11, 2023

What?

I made transition from QMake to CMake

Why?

CMake is de facto a standard build system in C++. The Qt Company, starting with Qt6, abandons QMake in favor of CMake to build Qt

How?

I used a modular CMake structure.
cmake folder is for helper scripts, future updates to it could include configuration files that can be incorporated into other projects to help them find and utilize the project.
packaging folder contains configuration for CPack to create a package.
share folder is for resources that will be used in the output executable.

Testing?

Although the project itself does not have any tests, its building system is being tested using GitHub Actions.

Anything Else?

QMake build process remains unchanged.

Move files to new places and modify project files for qmake to save compatibility
@nikita-talalai nikita-talalai force-pushed the master branch 2 times, most recently from 277a74e to 9170ab1 Compare December 11, 2023 16:24
@nikita-talalai
Copy link
Author

In source tree run:
mkdir ../build
cmake -S . -B ../build && cmake --build ../build
cd ../build
cpack

@nikita-talalai nikita-talalai force-pushed the master branch 2 times, most recently from cc0edd5 to b185152 Compare December 15, 2023 15:06
@nikita-talalai nikita-talalai changed the title Practice task qmake -> cmake Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant